<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of init
 *
 * @author Костя
 */
class qCMS
{
    
    public function start($url){
        global $params;
        
        $urlRewrite = new Url($url);
        //echo $urlRewrite->parseUrl();
        $seq = new Security();
        if ($_SERVER['REQUEST_METHOD'] == 'POST')
        {
            $seq->postFilter();
        }
        $uri = $seq->xssFilter($urlRewrite->parseUrl());
        $route = new Route($uri, $params['db']);
        $route->go();
        echo '<br>'.$uri;
    }
    
}

?>
